﻿using System;

namespace EventBus2
{
    /// <summary>
    /// 事件源
    /// 所有被订阅的事件都要继承这个
    /// </summary>
    public abstract class IEvent
    {
        /// <summary>
        /// 
        /// </summary>
        public string EventName;
    }

    public abstract class IEvent<T> : IEvent where T : MyEventArgs
    {
    }

    /// <summary>
    /// 事件A
    /// </summary>
    public class EventA : IEvent<MyEventArgsA>
    {
    }
    /// <summary>
    /// 事件B
    /// </summary>
    public class EventB : IEvent<MyEventArgsB>
    {
    }
}
